package com.wang.blog.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * @author 
 * 
 */
public class MeArticle implements Serializable {
    private Integer id;

    private Integer commentCounts;

    @JSONField(format = "yyyy.MM.dd HH:mm")
    private Date createDate;

    private String summary;

    private String title;

    private Integer viewCounts;

    private Integer weight;

    private Long authorId;

    private Long bodyId;

    private Integer categoryId;
//外表开始
    @JSONField(name = "author")
    private SysUser sysUser;


    private List<MeTag> meTags;

    private MeCategory meCategory;

    private MeArticleBody meArticleBody;

    public MeArticleBody getMeArticleBody() {
        return meArticleBody;
    }

    public void setMeArticleBody(MeArticleBody meArticleBody) {
        this.meArticleBody = meArticleBody;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public List<MeTag> getMeTags() {
        return meTags;
    }

    public void setMeTags(List<MeTag> meTags) {
        this.meTags = meTags;
    }

    public MeCategory getMeCategory() {
        return meCategory;
    }

    public void setMeCategory(MeCategory meCategory) {
        this.meCategory = meCategory;
    }
    //外表结束
    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommentCounts() {
        return commentCounts;
    }

    public void setCommentCounts(Integer commentCounts) {
        this.commentCounts = commentCounts;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getViewCounts() {
        return viewCounts;
    }

    public void setViewCounts(Integer viewCounts) {
        this.viewCounts = viewCounts;
    }

    public Integer getWeight() {
        return weight;
    }

    public void setWeight(Integer weight) {
        this.weight = weight;
    }

    public Long getAuthorId() {
        return authorId;
    }

    public void setAuthorId(Long authorId) {
        this.authorId = authorId;
    }

    public Long getBodyId() {
        return bodyId;
    }

    public void setBodyId(Long bodyId) {
        this.bodyId = bodyId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

}